<?php
$serverName = "PC2\MSSQLSERVER, 1433"; //serverName\instanceName
$connectionInfo = array( "Database"=>"pruebas_local", "UID"=>"usuario", "PWD"=>"123");
$conn = sqlsrv_connect( $serverName, $connectionInfo);
?>